public class Admin1 extends Staff {
    private String department; // 部门

    public Admin1(String id, String name, String gender, double salary, String department) {
        super(id, name, gender, salary);
        this.department = department;
    }

    @Override
    public void work() {
        System.out.println("在" + department + "从事行政工作");
    }
}